Repository navigation
fix(pm-console): a machine's console runs from its own copy of main, fetched from GitHub - #14286
Merged
Merged
Conversation
…fetched from GitHub On the laptop the console ran from the checkout the fleet's lanes work in. That checkout is not kept at main, so the console in service was main's code from the day before, and then another branch's altogether, put into service by the console's own redeploy when the checkout was switched to that branch (#13833). - The console runs from ~/.local/share/pm-console: a clone that fetches only main and only the console's part of the tree, a release laid out for each commit, and a link to the one in service. - redeploy.sh asks GitHub for main every minute. New console code is laid out as a release and started in a self-check; only then is the link moved and the release's own install.sh run. - install.sh waits for the console to answer its health check as that release's commit. The console says which commit it was started from, read from the release. - A release that does not start, or does not come up, does not stay: the one before it is put back and the unit fails. GitHub out of reach changes nothing, and is a failure after half an hour. - The console's four services run from the link, and from no checkout anything else works in. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YLT5K1QVuzZjfWGFhXSSNF
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 18 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This was referenced Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What was wrong
On the laptop the console ran from the checkout the fleet's lanes work in. That checkout is not kept at main: lanes leave it on their own branches with half-written files, and the unit that would pull main into it rightly refuses to. So the console in service was main's code from the day before, and from 08:39Z on 2026-11-24 another branch's code altogether (
9c2b4ad096e3). The journal on the machine says what put it there: the console's own redeploy (redeploy: 9c2b4ad096e is in service), when the checkout was switched to that branch. #13833 has been passed over five times by five lanes; each found it still so.What this changes
The source of truth for what a machine's console runs is GitHub's main, not a directory on the laptop.
~/.local/share/pm-console, which is its own:repo/: a clone that fetches only main, and only the console's part of the tree;releases/<commit>/: the console's files at one commit, with.releasesaying which commit and which tree;current: a link to the release in service. The console's four services run from it.redeploy.sh(every minute) asks GitHub for main. When the console's code there, one of its units, or the dashboard's list of pages is not what is in service, it lays the commit out as a release, starts it in a self-check with the service's own settings, and only then moves the link and runs the release's owninstall.sh.install.shinstalls the units, restarts the console and waits for it to answer its health check as that commit. The console now says which commit it was started from, read from the release.How it was checked
systemctl, and the health check.amd, with the repository's own tools:shfmt -i 2 -s -dno difference,shellchecknothing.bun test564 pass; types; formatting; the self-check.Not in this change
The edge still cannot tell by itself that a machine runs other console code than it does (each says a commit, and two commits can hold the same console). A release now records its console's tree, which is what the two sides would compare.
Refs #13833.
Generated by Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.